package xsxdjc
public class PolicyReason{
	static public class ReasonItem implements hc.bre.cmn.IListOption{
		int id;
		String code;
		String name;
	};
	public static final ReasonItem R0001 = new ReasonItem(id:1, code:'R0001', name:'严格检查性别');
	public static final ReasonItem R0002 = new ReasonItem(id:2, code:'R0002', name:'始终命中');
	public static final ReasonItem R0003 = new ReasonItem(id:3, code:'R0003', name:'始终不命中');
	public static final ReasonItem R0004 = new ReasonItem(id:4, code:'R0004', name:'其它原因码');
	public static final ReasonItem R0005 = new ReasonItem(id:5, code:'R0005', name:'');
	public static Closure rule = {_context_ ->
		HashMap _result_ = new HashMap();
		_result_.rname = '政策及原因码';
		_result_.rpath = 'xsxdjc/PolicyReason';
		
		List<ReasonItem> _policyset_ = [];
		if((_reasoncode_ == '_all_' || _reasoncode_ =='R0001') && {
			 个人信息.性别 == 1
			}.call()) _policyset_.add(PolicyReason.R0001);
		if((_reasoncode_ == '_all_' || _reasoncode_ =='R0002') && {
			 true
			}.call()) _policyset_.add(PolicyReason.R0002);
		if((_reasoncode_ == '_all_' || _reasoncode_ =='R0003') && {
			 false
			}.call()) _policyset_.add(PolicyReason.R0003);
		if((_reasoncode_ == '_all_' || _reasoncode_ =='R0004') && {
			 true
			}.call()) _policyset_.add(PolicyReason.R0004);
		if((_reasoncode_ == '_all_' || _reasoncode_ =='R0005') && {
			 
			}.call()) _policyset_.add(PolicyReason.R0005);
		_result_.policyset = _policyset_;
		
		return _result_;
	};
};